<template>
  <div class="base-view-btn" @click="$emit('click')">
    <div class="btn">
      <span class="slot-text">
        <slot />
      </span>
      <img :src="pic" />
    </div>
  </div>
</template>
<script>
import pic from '@/assets/icons/pic.png'
export default {
  data() {
    return {
      pic: pic
    }
  }
}
</script>
<style lang="scss" scoped>
.base-view-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  .btn {
    width: 60%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    // background: #67c23a;
    border-radius: 2px;
    cursor: pointer;
    .slot-text {
      font-size: 12px;
      margin-right: 5px;
    }
    img {
      width: 20px;
      height: 20px;
    }
  }
}
</style>
